package com.soufang.soufang.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class TestController {

    @RequestMapping(value = {"/","/index"})
    public String testThymeleaf(Model model){

        return "index";
    }

    @RequestMapping("/testerror")
    public String testError(Model model){

       throw new RuntimeException("发生异常");

    }


}
